package com.tianya.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 排课表
 * @TableName schedule
 */
@TableName(value ="schedule")
@Data
public class Schedule {
    /**
     * 排课ID
     */
    @TableId(type = IdType.AUTO)
    private Long scheduleId;

    /**
     * 关联 class.class_id
     */
    private Long clazzId;

    /**
     * 关联 course.course_id
     */
    private Long courseId;

    /**
     * 关联 teacher.teacher_id
     */
    private Long teacherId;

    /**
     * 周几（1=周一…7=周日）
     */
    private Integer dayOfWeek;

    private LocalDateTime startTime;
    private LocalDateTime endTime;

    /**
     * 节次
     */
    private Integer period;

    /**
     * 教室
     */
    private String location;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}